//
//  RequestOperationManager.h
//  CFFinanceProject
//
//  Created by chunfeng on 2018/4/9.
//  Copyright © 2018年 xiaowen. All rights reserved.
//



#import <Foundation/Foundation.h>

@interface RequestOperationManager : NSObject

+ (void)getVersionSuccess:(void (^)(id result))successBlock
                 failture:(void (^)(NSError *error))failtureBlock;

//广告页图片
+(void)startUp_Success:(void (^)(id result))successBlock
              failture:(void (^)(NSError *error))failtureBlock;
//******************登录注册*****************//
//获取验证码
+(void)sendCode_action:(NSString *)action
                 phone:(NSString *)phone
               Success:(void (^)(id result))successBlock
              failture:(void (^)(NSError *error))failtureBlock;

//登录
+(void)login_phon:(NSString *)iphone
         password:(NSString *)password
          Success:(void (^)(id result))successBlock
         failture:(void (^)(NSError *error))failtureBlock;

//注册
+(void)register_iphone:(NSString *)iphone
              password:(NSString *)password
           source_code:(NSString *)source_code
                  code:(NSString *)code
               Success:(void (^)(id result))successBlock
              failture:(void (^)(NSError *error))failtureBlock;
//修改密码
+(void)setPassword_iphone:(NSString *)iphone
                 password:(NSString *)password
                     code:(NSString *)code
                  Success:(void (^)(id result))successBlock
                 failture:(void (^)(NSError *error))failtureBlock;



//******************首页学车*****************//
+ (void)homeList_Success:(void (^)(id result))successBlock
                failture:(void (^)(NSError *error))failtureBlock;

//驾校详情
+(void)schoolDetail_sid:(NSString *)sid
                Success:(void (^)(id result))successBlock
               failture:(void (^)(NSError *error))failtureBlock;
//教练列表
+(void)teacherList_school_id:(NSString *)school_id
                     success:(void (^)(id result))successBlock
                    failture:(void (^)(NSError *error))failtureBlock;
//检查用户是否已经报名学车
+(void)checkSchool_success:(void (^)(id result))successBlock
                  failture:(void (^)(NSError *error))failtureBlock;
//获取报名信息
+(void)studentEntry_schoolId:(NSString *)schoolId
                    success:(void (^)(id result))successBlock
                   failture:(void (^)(NSError *error))failtureBlock;
//驾校报名支付宝支付
+(void)studyCar_parm:(NSDictionary *)parm
            _success:(void (^)(id result))successBlock
            failture:(void (^)(NSError *error))failtureBlock;
//驾校报名微信支付
+(void)studyCarWxpay_parm:(NSDictionary *)parm
                 _success:(void (^)(id result))successBlock
                 failture:(void (^)(NSError *error))failtureBlock;

//******************服务*****************//
//服务列表
+ (void)serviceList_Success:(void (^)(id result))successBlock
                   failture:(void (^)(NSError *error))failtureBlock;
//服务详情
+ (void)serviceDetail_id:(NSString *)serId
                 success:(void (^)(id result))successBlock
                failture:(void (^)(NSError *error))failtureBlock;
//服务商品详情
+ (void)serviceGoodsDetail_id:(NSString *)goodsId
                      success:(void (^)(id result))successBlock
                     failture:(void (^)(NSError *error))failtureBlock;
//积分兑换不花钱
+ (void)serviceExchange_product:(NSString *)product
                     product_id:(NSString *)product_id
                       integral:(NSString *)integral
                    is_exchange:(NSString *)is_exchange
                      seller_id:(NSString *)seller_id
                        success:(void (^)(id result))successBlock
                       failture:(void (^)(NSError *error))failtureBlock;
//积分兑换花钱-支付宝
+ (void)serviceProductbuy_product:(NSString *)product
                     product_id:(NSString *)product_id
                       integral:(NSString *)integral
                            money:(NSString *)money
                        seller_id:(NSString *)seller_id
                    is_exchange:(NSString *)is_exchange
                              pay:(NSString *)payWay
                        success:(void (^)(id result))successBlock
                       failture:(void (^)(NSError *error))failtureBlock;



//******************车险*****************//
//车险banner
+ (void)carBanner_success:(void (^)(id result))successBlock
failture:(void (^)(NSError *error))failtureBlock;

//车险
+ (void)insuranceSubscribe_parm:(NSDictionary *)parm
                        success:(void (^)(id result))successBlock
                       failture:(void (^)(NSError *error))failtureBlock;
//******************买车*****************//
//买车轮播图
+ (void)paycarBanner_success:(void (^)(id result))successBlock
failture:(void (^)(NSError *error))failtureBlock;
//团购车
+ (void)paycarGroup_success:(void (^)(id result))successBlock
              failture:(void (^)(NSError *error))failtureBlock;
//汽车列表
+ (void)payCarList_type_id:(NSString *)type_id
                  money_id:(NSString *)money_id
                   success:(void (^)(id result))successBlock
                  failture:(void (^)(NSError *error))failtureBlock;
//二手车列表
+ (void)payUserdCarList_type_id:(NSString *)type_id
                       money_id:(NSString *)money_id
                          order:(NSString *)order
                        success:(void (^)(id result))successBlock
                       failture:(void (^)(NSError *error))failtureBlock;
//汽车详情
+ (void)carDetail_id:(NSString *)carId
             success:(void (^)(id result))successBlock
            failture:(void (^)(NSError *error))failtureBlock;
//团购详情
+ (void)groupDetail_id:(NSString *)carId
               success:(void (^)(id result))successBlock
              failture:(void (^)(NSError *error))failtureBlock;
//二手车详情
+ (void)useredCarDetail_id:(NSString *)carId
                   success:(void (^)(id result))successBlock
                  failture:(void (^)(NSError *error))failtureBlock;

//预约看车
+ (void)seeCar_name:(NSString *)name
             iphone:(NSString *)iphone
         vehicle_id:(NSString *)vehicle_id
          seller_id:(NSString *)seller_id
            success:(void (^)(id result))successBlock
           failture:(void (^)(NSError *error))failtureBloc;
//团购预约
+ (void)groupBuy_name:(NSString *)name
          is_purchase:(NSString *)is_purchase
               iphone:(NSString *)iphone
              success:(void (^)(id result))successBlock
             failture:(void (^)(NSError *error))failtureBlock;



//******************个人中心*****************//
//个人中心
+(void)personalIndex_success:(void (^)(id result))successBlock
                    failture:(void (^)(NSError *error))failtureBlock;
//会员等级
+(void)personalIndexdetail_success:(void (^)(id result))successBlock
                           failture:(void (^)(NSError *error))failtureBlock;
//第三方服务
+(void)PersonalLink_success:(void (^)(id result))successBlock
                   failture:(void (^)(NSError *error))failtureBlock;
//我的消息
+(void)personalMessage_page:(NSString *)page
                             success:(void (^)(id result))successBlock
                            failture:(void (^)(NSError *error))failtureBlock;
//积分兑换记录
+(void)personalIntegralExchange_page:(NSString *)page
                    success:(void (^)(id result))successBlock
                   failture:(void (^)(NSError *error))failtureBlock;
//我的订单
+(void)personalOrder_success:(void (^)(id result))successBlock
                            failture:(void (^)(NSError *error))failtureBlock;
//问题列表
+(void)perdonlCustomer_success:(void (^)(id result))successBlock
                      failture:(void (^)(NSError *error))failtureBlock;
//救援电话
+(void)personalAccident_success:(void (^)(id result))successBlock
                       failture:(void (^)(NSError *error))failtureBlock;
//检车要求
+(void)personalRequirement_success:(void (^)(id result))successBlock
                          failture:(void (^)(NSError *error))failtureBlock;
//检车时间
+ (void)personalInspectTime_success:(void (^)(id result))successBlock
                           failture:(void (^)(NSError *error))failtureBlock;
//检查时间是否可选
+ (void)dateIsReserve_id:(NSString *)timeId
                 success:(void (^)(id result))successBlock
                failture:(void (^)(NSError *error))failtureBlock;
//上传行驶证
+(void)personalUploadImg_image:(NSString *)image
                     imageData:(NSData *)imageData
                       success:(void (^)(id result))successBlock
                      failture:(void (^)(NSError *error))failtureBlock;
//检查是否已提交个人车检http://school.yunzi.fun/api/Personal/checkPeople
+(void)checkPeople_success:(void (^)(id result))successBlock
                 failture:(void (^)(NSError *error))failtureBlock;
//个人检车
+(void)checkCar_parm:(NSDictionary *)parm
                 success:(void (^)(id result))successBlock
                 failture:(void (^)(NSError *error))failtureBlock;
//个人检车微信支付
+(void)checkCarWXPay_parm:(NSDictionary *)parm
                  success:(void (^)(id result))successBlock
                 failture:(void (^)(NSError *error))failtureBlock;
//检查是否已提交团队车检
//团队检车
+ (void)checkTeam_success:(void (^)(id result))successBlock
                 failture:(void (^)(NSError *error))failtureBlock;
+(void)personalTeam_number:(NSString *)number
                  contacts:(NSString *)contacts
            contacts_phone:(NSString *)contacts_phone
                   company:(NSString *)company
                   success:(void (^)(id result))successBlock
                   failture:(void (^)(NSError *error))failtureBlock;

//大礼包列表
+ (void)giftList_success:(void (^)(id result))successBlock
               failture:(void (^)(NSError *error))failtureBlock;
//大礼包详情
+ (void)giftDetail_pid:(NSString *)pid
               success:(void (^)(id result))successBlock
              failture:(void (^)(NSError *error))failtureBlock;
//大礼包购买
+ (void)giftbuyAlipays_price:(NSString *)price
                     gift_id:(NSString *)gift_id
                     success:(void (^)(id result))successBlock
                    failture:(void (^)(NSError *error))failtureBlock;
+ (void)giftWechatpay_price:(NSString *)price
                    gift_id:(NSString *)gift_id
                    success:(void (^)(id result))successBlock
                   failture:(void (^)(NSError *error))failtureBlock;
//http://localhost/api/Personal/myGift
+ (void)myGift_success:(void (^)(id result))successBlock
              failture:(void (^)(NSError *error))failtureBlock;
//修改密码
+ (void)changePassword_iphone:(NSString *)iphone
                     password:(NSString *)password
                         code:(NSString *)code
                      success:(void (^)(id result))successBlock
                     failture:(void (^)(NSError *error))failtureBlock;
//邀请好友
+ (void)personalInvite_success:(void (^)(id result))successBlock
failture:(void (^)(NSError *error))failtureBlock;
@end
